<?php 
if (!isset($_SESSION))
    session_start ();
include($_SESSION['dir'].'/formatoPagina/encabezado.php') ?>
<?php include($_SESSION['dir'].'/formatoPagina/menu.php') ?>
<?php include($_SESSION['dir'].'/formatoPagina/inicioContenido.php') ?>
<div class="post">
    <h2 class="title"><a href="#">Ver abusos </a></h2>
            <?php                     
                include_once($_SESSION['dir'].'/Abuso/abuso.php');
                $abuso = new abuso();
                $arr = $abuso->conseguirAbusos();
                $cant = count($arr);                                                               
            ?>							

            <table border="1" cellpadding="0" cellspacing="0" bordercolor="#111111" width="100%">

            <tr>

            <td width="34%" bgcolor="#66CD00" height="21">

            <p style="margin-left: 10"><b><font size="2" face="Verdana" color="#FFFFFF">

            Nombre del<br> denunciante</font></b></td>

            <td width="30%" bgcolor="#66CD00" height="21">

            <p style="margin-left: 10"><b><font face="Verdana" size="2" color="#FFFFFF">

            ID del <br>Denunciante</font></b></td>


            <td width="33%" bgcolor="#66CD00" height="21">

            <p style="margin-left: 10"><b><font face="Verdana" size="2" color="#FFFFFF">

            Fecha de la denuncia &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</font></b></td>

            <td width="33%" bgcolor="#66CD00" height="21">

            <p style="margin-left: 10"><b><font face="Verdana" size="2" color="#FFFFFF">

            Tipo&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</font></b></td>

            <td width="33%" bgcolor="#66CD00" height="21">

            <p style="margin-left: 10"><b><font face="Verdana" size="2" color="#FFFFFF">

            Estado&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</font></b></td>

            <td width="33%" bgcolor="#66CD00" height="21">

            <p style="margin-left: 10"><b><font face="Verdana" size="2" color="#FFFFFF">

            Ver Detalles&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</font></b></td>

            </tr> 

            <?php
            for($i = 0; $i < $cant; $i= $i+8)
            {

            ?>

            <tr>

            <td width="34%" bgcolor="#FFDCA8" height="21">

            <p style="margin-left: 10; margin-right: 10">

            <font face="Verdana" size="1">

            <?php echo $arr[$i+1]; ?>

            </font>

            </td>

            <td width="34%" bgcolor="#FFDCA8" height="21">

            <p style="margin-left: 10; margin-right: 10">

            <font face="Verdana" size="1">

            <?php echo $arr[$i+2]; ?>

            </font>

            </td>

            <td width="34%" bgcolor="#FFDCA8" height="21">

            <p style="margin-left: 10; margin-right: 10">

            <font face="Verdana" size="1">

            <?php echo $arr[$i+3]; ?>

            </font>

            </td>

            <td width="34%" bgcolor="#FFDCA8" height="21">

            <p style="margin-left: 10; margin-right: 10">

            <font face="Verdana" size="1">

            <?php echo $arr[$i+5]; ?>

            </font>

            </td>

            <td width="34%" bgcolor="#FFDCA8" height="21">

            <p style="margin-left: 10; margin-right: 10">

            <font face="Verdana" size="1">

            <?php echo $arr[$i+7]; ?>

            </font>

            </td>

            <td width="33%" bgcolor="#FFDCA8" height="21">

            <p style="margin-left: 10"><font face="Verdana" size="1">

            <a href="consultarAbusos.php?id=<?php echo $arr[$i]; ?>">

            Presiona aqu&iacute

            </a></font>

            </td>

            </tr>

            <?php
            }

            echo "</table>";

            ?>
            <br><p>
            <br><p>
</div>
<div style="clear: both;">&nbsp;</div>
<?php include_once($_SESSION['dir'].'/formatoPagina/finContenido.php') ?>